﻿using Platformer_Example.Content.Images.Environment;
using Transformable_Engine_v2.Engine.GameObjects.Containers.Transformable_controls;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Platformer_Example.Controller.Terrain.Castle
{
    public class CastleTerrain : BaseTerrain
    {
        public CastleTerrain(TE_Vector2 position, TE_Vector2 size, int type, bool isStairEnd) 
            : base(position, size, type, isStairEnd)
        {
        }

        protected override void AddSprite(TerrainSprite sprite, TE_Vector2 size)
        {
            AddChildren(new RepeatingImage
                            {
                                Sprite = SpritesheetCastle.GetSprite(sprite),
                                Size = size,
                            });
        }
    }
}